<!--
 * @Description: 
 * @Version: V1.0.0
 * @Autor: CHY
 * @Date: 2021-12-16 08:43:44
 * @LastEditors: CHY
 * @LastEditTime: 2022-05-11 11:04:49
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h1>数组去重复测试</h1>
    <script>
        const pipe = (...args) => x => args.reduce(
            (outputValue, crrentFunction) => crrentFunction(outputValue), x
        )
        console.log(pipe(x => 1)(), pipe(x => 3)())

    </script>

</body>

</html>